package com.itgirl.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
*倚窗听喧嚣
*2020/4/26
*$ 定义一个类 实现ImportSelector 接口 导入选择器
*/
public class ConfigType implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        //定位到要配置的对象的路径
        return new String[]{"com.itgirl.pojo.User"};
    }
}
